#ifndef _IN_PER_UART_HANDLE_H_
#define _IN_PER_UART_HANDLE_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <errno.h>
#include <string.h>
#include <pthread.h>
#include <signal.h>
#include "InCommon.h"
#include "InPerUart.h"
#include "InPerUartRead.h"

typedef struct
{
    Com_u32 length;   //date length
    Com_u8  data[DEF_PER_UART_BUF_SIZE];   //commnunicate data
}SPerUartData,*pSPerUartData;

Com_void Ext_InPer_UartSend_ManulFeed(Com_s32 feed_num);
Com_void Ext_InPer_UartSend_Get_Time(Com_void);
Com_void Ext_InPer_UartSend_Set_Time(Com_void);
Com_void Ext_InPer_UartHandle_Remind(Com_pu8 buf);
Com_void Ext_InPer_UartHandle_Feed_Result(Com_pu8 buf);
Com_void Ext_InPer_UartSend_Version(Com_void);
Com_void Ext_InPer_UartHandle_Version(Com_pu8 buf);
Com_void Ext_InPer_UartSend_Reset(Com_void);
Com_s32 Ext_InPer_UartSend_Ota_Start(Com_void);
Com_s32 Ext_InPer_UartSend_Ota_Package(Com_s32 count);
Com_void Ext_InPer_UartHandle_Reset(Com_void);
Com_void Ext_InPer_UartSend_Record_Mode(Com_u8 mode);
Com_void Ext_InPer_UartSend_Led_Status(Com_s32 val);
Com_void Ext_InPer_UartSend_Heartbeat(Com_void);
Com_void Ext_InPer_UartSend_Report_Init_Status(Com_void);
Com_void Ext_InPer_UartSend_Bool_SW(Com_s32 dp_id, Com_s32 val);
Com_void Ext_InPer_UartHandle_Bool_SW(Com_pu8 buf);

#ifdef __cplusplus
}
#endif

#endif
